package com.controller;

public class User1 {
	private String name;
	private int age;
	private String password;
	private String mobile;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public boolean validate() {
		if(this.name.equals("张三") && this.password.equals("123")) {
			return true;
		}else {
			return false;
		}
	}
}
